<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 

<%
	String path = request.getContextPath();
%>

<form id="pagerForm" method="post" action="<%=path %>/memberCard/listMemberCard.action">
	<input type="hidden" name="pageRequest" value="1" />
	<input type="hidden" name="pageNum" value="${paginator.pageIndex}" />
	<input type="hidden" name="numPerPage" value="${paginator.pageSize}" />
</form>

<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" rel="pagerForm" action="<%=path %>/memberCard/listMemberCard.action" method="post">
	<div class="searchBar">
		<ul class="searchContent">

		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="<%=path %>/memberCard/addMemberCard.action" target="navTab"><span>添加</span></a></li>
			<li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="key" postType="string" href="<%=path %>/memberCard/deleteMemberCard.action" class="delete"><span>删除</span></a></li>
			<li><a class="edit" href="<%=path %>/memberCard/editMemberCard.action?userVO.id={sid_user}" target="navTab" warn="请选择一条记录"><span>修改</span></a></li>
		</ul>
	</div>
	<table class="table" width="1150" layoutH="138">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th>会员卡方案编码</th>
				<th>会员卡编码</th>
				<th>用户编码</th>
				<th>会员名</th>
				<th>会员手机</th>
				<th>会员Email</th>
				<th>会员QQ</th>
				<th>会员联系地址</th>
				<th>会员身份证号</th>
				<th>会员性别</th>
				<th>会员出生日期</th>
				<th>会员卡余额</th>
				<th>会员卡计次数量</th>
				<th>会员卡优惠券数量</th>
				<th>手机会员卡用户</th>
				<th>扩展字段1</th>
				<th>扩展字段2</th>
				<th>扩展字段3</th>
				<th>扩展字段4</th>
				<th>扩展字段5</th>
				<th>扩展字段6</th>
				<th>扩展字段7</th>
				<th>扩展字段8</th>
				<th>扩展字段9</th>
				<th>扩展字段10</th>
				<th width="70">操作</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator value="userList" id="memberCard" status="st">
				<tr target="sid_user" rel="<s:property value="id" />">
					<td><input name="key" value="<s:property value="id" />" type="checkbox"></td>
             <td><s:property value="schemeCode" /></td>	
             <td><s:property value="cardCode" /></td>	
             <td><s:property value="memberCode" /></td>	
             <td><s:property value="memberName" /></td>	
             <td><s:property value="memberPhone" /></td>	
             <td><s:property value="memberEmail" /></td>	
             <td><s:property value="memberQq" /></td>	
             <td><s:property value="memberAddress" /></td>	
             <td><s:property value="membeIdCard" /></td>	
             <td><s:property value="memberSex" /></td>
	<td><s:date name="memberBirth" format="yyyy-MM-dd" /></td>
             <td><s:property value="cardBalance" /></td>
             <td><s:property value="cardMeteringAmount" /></td>
             <td><s:property value="cardCouponAmount" /></td>
             <td><s:property value="memberId" /></td>
             <td><s:property value="extendedField1" /></td>	
             <td><s:property value="extendedField2" /></td>	
             <td><s:property value="extendedField3" /></td>	
             <td><s:property value="extendedField4" /></td>	
             <td><s:property value="extendedField5" /></td>	
             <td><s:property value="extendedField6" /></td>	
             <td><s:property value="extendedField7" /></td>	
             <td><s:property value="extendedField8" /></td>	
             <td><s:property value="extendedField9" /></td>	
             <td><s:property value="extendedField10" /></td>	
					<td>
						<a title="确实要删除这条记录吗?" target="ajaxTodo" href="<%=path %>/user/deleteUser.action?key=<s:property value="id" />" class="btnDel">删除</a>
						<a title="编辑" target="navTab" href="<%=path %>/user/editUser.action?userVO.id=<s:property value="id" />" class="btnEdit">编辑</a>
					</td>
				</tr>
			</s:iterator>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
				<span>显示</span>
				<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
					<option value="15" <c:if test="${paginator.pageSize==15}">selected='selected'</c:if> >15</option>
					<option value="50" <c:if test="${paginator.pageSize==50}">selected='selected'</c:if> >50</option>
					<option value="100" <c:if test="${paginator.pageSize==100}">selected='selected'</c:if> >100</option>
					<option value="200" <c:if test="${paginator.pageSize==200}">selected='selected'</c:if> >200</option>
				</select>
				<span>条，共${paginator.totalCount}条</span>
			</div>
			<div class="pagination" targetType="navTab" totalCount="${paginator.totalCount}" 
				numPerPage="${paginator.pageSize}" pageNumShown="10" currentPage="${paginator.pageIndex}"></div>

	</div>
</div>